package com.dragon.pear.modules.trade.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.trade.domain.entity.TradeGoodsCartEntity;
import com.dragon.pear.modules.trade.web.model.params.create.TradeGoodsCartCreateParam;
import com.dragon.pear.modules.trade.web.model.params.update.TradeGoodsCartUpdateParam;
import com.dragon.pear.modules.trade.web.model.params.search.TradeGoodsCartSearchParam;
import com.dragon.pear.modules.trade.web.model.params.order.TradeGoodsCartOrderParam;
import com.dragon.pear.modules.trade.web.model.results.TradeGoodsCartResult;
import com.dragon.pear.modules.trade.dao.repository.TradeGoodsCartRepository;
import com.dragon.pear.modules.trade.service.assistants.converters.TradeGoodsCartConverter;
import com.dragon.pear.modules.trade.service.def.TradeGoodsCartService;
import com.dragon.pear.modules.trade.web.api.TradeGoodsCartApi;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 购物车 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("trade/goods/cart")
public class TradeGoodsCartController implements TradeGoodsCartApi, BaseCrudController<
        TradeGoodsCartEntity,
        TradeGoodsCartCreateParam,
        TradeGoodsCartUpdateParam,
        TradeGoodsCartSearchParam,
        TradeGoodsCartOrderParam,
        TradeGoodsCartResult,
        TradeGoodsCartRepository,
        TradeGoodsCartConverter,
        TradeGoodsCartService
        > {

    @Autowired
    TradeGoodsCartService tradeGoodsCartService;

    @Override
    public TradeGoodsCartService getService() {
        return tradeGoodsCartService;
    }
}